package com.design.pattern.decorator;

import lombok.Builder;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author goujian
 * @description: 具体装饰类
 * @date 2022/3/15 6:29 下午
 */
@Slf4j
public class StandDecorator extends AbstractDecorator{
    public StandDecorator(AbstractVehicle vehicle) {
        super(vehicle);
    }

    @Override
    void basicFunction() {
        super.basicFunction();
    }

    @Override
    void cost() {
        super.cost();
        log.info("站票:{}", 10);
    }
}
